<%@page contentType="text/html" pageEncoding="UTF-8" import="java.io.*, java.sql.*, javax.sql.*"%>
<%

    Connection con = com.elookinto.wordlist.Util.getCon();
    String grade = request.getParameter("grade");
    String uid = (String) session.getAttribute("uid");
    PreparedStatement st = null;
    if (grade == null || grade.equals("I")) {

        st = con.prepareStatement("Select distinct listname  from wordlist where listname like 'GRE%' order by listname");
          }

    ResultSet rs = st.executeQuery();
    while (rs.next()) {
        String listName = rs.getString("listname");
        if (grade == null || grade.equals("I") )
                       {
             if (listName.contains("SATO")) continue;
        }
        //System.out.println(rs.getDate("insert_time"));
        //System.out.println(rs.getString("listname"));
        //System.out.println(rs.getString("uid"));
        //System.out.println(word);
%>

<a style="margin-left:3px;background:darkgray" href="javascript:void(0)" onclick=" wordList('<%= listName%>', true)"><%= listName%></a>

<%}
    rs.close();
    st.close();
    con.close();
%>
